import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

/* 全局引入element-plus组件库 */
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

/* 引入jquery */
// import $ from 'jquert';

/* 引入iconfont字体图标 */
import './assets/iconfont/iconfont.css';

/* 引入element字体图标 */
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

/* 引入axios */
// import axios from 'axios';
// axios.defaults.withCredentials = true;

const app = createApp(App)

app.use(ElementPlus).use(store).use(router).mount('#app');

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}